package Eyjafjalla.card.skill;

import Eyjafjalla.action.ChooseHandChangeAction;
import Eyjafjalla.action.ChooseHandToCloudAction;
import Eyjafjalla.action.DrawCloudAction;
import Eyjafjalla.action.InheritAction;
import Eyjafjalla.card.AbstractEyjafjallaCard;
import Eyjafjalla.modcore.EyjafjallaTag;
import com.megacrit.cardcrawl.actions.common.DrawCardAction;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.core.CardCrawlGame;
import com.megacrit.cardcrawl.localization.CardStrings;
import com.megacrit.cardcrawl.monsters.AbstractMonster;

public class Afterglow_Eyjafjalla extends AbstractEyjafjallaCard {
    public static final String ID = "Afterglow_Eyjafjalla";
    private static final CardStrings cardStrings;

    public Afterglow_Eyjafjalla(){
        super(ID, cardStrings.NAME,0,cardStrings.DESCRIPTION,CardType.SKILL,CardRarity.UNCOMMON,CardTarget.NONE);
        this.baseMagicNumber = 2;
        this.magicNumber = 2;
        this.tags.add(EyjafjallaTag.INNATE_EYJAFJALLA);
        setFireDescription(cardStrings.EXTENDED_DESCRIPTION[0]);
    }

    @Override
    public AbstractCard makeCopy() {
        return new Afterglow_Eyjafjalla();
    }

    @Override
    public void use(AbstractPlayer p, AbstractMonster m) {
        if(isFire()){
            addToBot(new DrawCardAction(1));
        }
        addToBot(new ChooseHandChangeAction(this.magicNumber));
    }

    @Override
    public void upgrade() {
        if(!this.upgraded){
            upgradeName();
            upgradeMagicNumber(1);
        }
    }

    static {
        cardStrings = CardCrawlGame.languagePack.getCardStrings(ID);
    }
}




